﻿
using System.Web;
using System.Web.Optimization;

namespace PhotoBlogApp.Web.App_Start
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            //BundleTable.EnableOptimizations = true;

            bundles.Add(new ScriptBundle("~/bundles/js")
                .Include("~/Scripts/jquery-{version}.js")
                .Include("~/Scripts/knockout-3.2.0.js", "~/Scripts/knockout.mapping-latest.js", "~/Scripts/knockout.custom.js")
                .Include("~/Scripts/bootstrap.js")
                .Include("~/Scripts/share.js")
                .Include("~/Scripts/client/photoblog.api.js")
                .Include("~/Scripts/client/models.js")
                .Include("~/Scripts/client/util.js")
                .Include("~/Scripts/client/photo.js")
                .Include("~/Scripts/client/mainVm.js")
                .Include("~/Scripts/client/main.js")
                .Include("~/Scripts/client/custom.js"));

            bundles.Add(new ScriptBundle("~/bundles/filupload")
                .Include("~/Scripts/FileUpload/jquery.ui.widget.js")
                .Include("~/Scripts/FileUpload/jquery.iframe-transport.js")
                .Include("~/Scripts/FileUpload/jquery.fileupload.js"));

            bundles.Add(new ScriptBundle("~/bundles/main")
               .Include("~/Scripts/jquery-{version}.js")
               .Include("~/Scripts/knockout-3.2.0.js")
               .Include("~/Scripts/bootstrap.js")
               .Include("~/Scripts/client/mainVm.js")
               .Include("~/Scripts/client/main.js")
               .Include("~/Scripts/share.js")
               );

            //////////////////////////////////////////////////

            bundles.Add(new StyleBundle("~/bundles/Content/css")
                .Include("~/Content/css/global.min.css")
                .Include("~/Content/css/jquery.fileupload-ui.min.css"));
        }
    }
}